#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<algorithm>
using namespace std;
#include<string>

int main()
{
	string s1("hello");
	s1 += "world";
	reverse(s1.begin(), s1.end());
	for (string::reverse_iterator it = s1.rbegin(); it != s1.rend(); it++)
	{
		cout << *it;
	}
	cout << endl;
	
	return 0;
}